package com.example.myapplication;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class UC1_2Activity extends AppCompatActivity {
    Button btn1;
    Button btn2;
    Button btn3;
    Button btn4;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_uc1_2);

        btn1 = findViewById(R.id.bn1);
        btn1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(UC1_2Activity.this,UC1_1Activity.class);
                startActivity(intent);
            }


        });

        btn2 = findViewById(R.id.bn2);
        btn2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(UC1_2Activity.this,UC1Activity.class);
                startActivity(intent);
            }


        });


        btn3 = findViewById(R.id.bn3);
        btn3.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(UC1_2Activity.this,UC1_2Activity.class);
                startActivity(intent);
            }


        });

        btn4 = findViewById(R.id.bn4);
        btn4.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(UC1_2Activity.this,MainActivity.class);
                startActivity(intent);
            }


        });












    }
}
